package com.macro.mall.tiny.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class updatePasswordDTO {

    @NotEmpty
    @ApiModelProperty(value="旧密码",required = true)
    private String newPassword;

    @NotEmpty
    @ApiModelProperty(value="新密码",required=true)
    private String oldPassword;

    @NotEmpty
    @ApiModelProperty(value="用户名",required=true)
    private String username;

}
